package vo;

import lombok.Data;

import java.io.Serializable;

/**
 * 账号(SysAccounts)实体类
 *
 * @author liujh
 * @since 2020-08-10 16:29:49
 */
@Data
public class SysAccountsVo implements Serializable {
    private static final long serialVersionUID = -23891179356680127L;
    /**
    * id
    */
    private Long id;
    /**
    * account
    */
    private String account;

    private Long userId;
    /**
    * password
    */
    private String password;
    /**
    * salt
    */
    private String salt;
    /**
    * locked
    */
    private int locked;
    /**
    * role_id
    */
    private Long roleId;

    /**
     * 记住我
     */
    private int rememberMe;

    /**
     *
     * 重写获取盐值方法，自定义realm使用
     * Gets credentials salt.
     *
     * @return the credentials salt
     */
    public String getCredentialsSalt() {
        return account + "nbclass.com" + salt;
    }


}